package com.songmao.pricecloudapitest.requestcore;

import org.apache.http.Header;
import org.apache.http.HeaderElement;
import org.apache.http.ParseException;

/**
 * 头部实现类
 * @author Remy
 */
public class HeaderImpl implements Header {
    private String name;
    private String value;

    @Override
    public HeaderElement[] getElements() throws ParseException {
        return new HeaderElement[0];
    }

    @Override
    public String getName() {
        return name;
    }

    @Override
    public String getValue() {
        return value;
    }

    public void setNameAndValue(String name, String value) {
        this.name = name;
        this.value = value;
    }
}